﻿<local:CreateRulePart x:Class="GUI.Custom_Classes.CreatePrecond"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:LEET.Application.Custom_Classes"
        Title="LEET - Create New Precondition"
        Height="385" Width="700"
        BorderThickness="2"
        AllowDrop="True"
        ResizeMode="NoResize"
        >

    <Grid>
        <StackPanel Background="WhiteSmoke">
            <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"></ScrollViewer>
            <DockPanel DockPanel.Dock="Top" Width="669" Height="38" Margin="5,5,0,0">
                <Label Content="Precondition Name: " Height="28" Width="120" HorizontalAlignment="Left" Name="preName"/>
                <TextBox Height="28" HorizontalAlignment="Left" Name="nameBox" Width="400" Margin="10,0,0,0" />
            </DockPanel>

            <!--<DockPanel Name="comboPanel" DockPanel.Dock="Top" Width="669" Height="38" Margin="5,5,0,0">
                <Label Content="Target Element: " Height="28" Width="100" HorizontalAlignment="Left" Name="preTarget"/>
                <ComboBox Height="24" Name="targetBox" SelectionChanged="targetBoxChanged" HorizontalAlignment="Left" Margin="10,0,0,0">
                    <ComboBoxItem IsSelected="True">-Select a Target-</ComboBoxItem>
                    <ComboBoxItem>ALL</ComboBoxItem>
                    <ComboBoxItem>Specific</ComboBoxItem>
                </ComboBox>
            </DockPanel>-->

            <DockPanel DockPanel.Dock="Top" Width="669" Height="200" Margin="5,5,0,0">
                <DockPanel DockPanel.Dock="Left" Width="60" Height="194" Margin="5,5,0,0">
                    <ScrollViewer HorizontalScrollBarVisibility="Hidden"  VerticalScrollBarVisibility="Hidden">
                        <StackPanel Name="lPanel" Orientation="Vertical">
                        </StackPanel>
                    </ScrollViewer>
                </DockPanel>
                <DockPanel Name="rPanel" DockPanel.Dock="Right" Width="599" Height="194" Margin="5,5,0,0">
                    <ScrollViewer ScrollViewer.ScrollChanged="PrecondList_Scroll" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                        <ListBox Name="buildPanel" SelectionMode="Multiple" Background="WhiteSmoke" BorderThickness="0">
                        </ListBox>
                    </ScrollViewer>
                </DockPanel>
            </DockPanel>

            <DockPanel DockPanel.Dock="Bottom" HorizontalAlignment="Center">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="38" Margin="0,5,0,5">
                    <Button Height="23" Name="addButton" Width="100" Click="addVerify" Margin="0,0,5,0">Add Verification</Button>
                    <Button Height="23" Name="selectedVers" Width="140" Click="addSelectedVerify" Margin="5,0,5,0">Add From Selected List</Button>
                    <Button Height="23" Name="removeVers" Width="75" Click="removeVerify" Margin="5,0,5,0">Remove</Button>
                    <Button Height="23" Name="createButton" Width="75" Click="createVerify" Margin="5,0,5,0">Save</Button>
                    <Button Height="23" Name="cancelButton" Width="75" Click="cancel_Button" Margin="5,0,0,0">Cancel</Button>
                </StackPanel>
            </DockPanel>

        </StackPanel>
    </Grid>
</local:CreateRulePart>
